<?php
//$result = file_get_contents('http://real-chart.finance.yahoo.com/table.csv?s=ACN&a=00&b=2&c=1962&d=11&e=9&f=2014&g=d&ignore=.csv', false);
require_once './Class/GetGpw.php';
require_once './Class/GetYahoo.php';
require_once './Class/GetMoney.php';


$config = array(
     'dateFrom' => '2014-11-10',
     'dateTo' => '2014-12-10',
     'instrumentType' => '10',
     'isin' => 'EUR'
);

//$get = new GetGPW($config);
//echo $get ->getData(null);


$config2 = array(
     'dateFrom' => '2014-11-10',
     'dateTo' => '2014-12-10',
     'instrumentType' => '10',
     'isin' => 'EUR'
);

$get = new GetMoney($config, ';');
var_dump($get->getArray());exit;



/*
$get = new GetYahoo($config2);
$get->cutData(array(GetYahoo::date, GetYahoo::openPrice, GetYahoo::highPrice));
$get->removeHeader();
$get->saveCsv('bezheadera');
var_dump($get->getArray());
*/

$get = new GetGPW(($config));
//var_dump($get->getArray());

$get->cutData(array(GetGpw::date, GetGpw::openPrice, GetGpw::highPrice));
$get->saveCsv();
echo file_get_contents('http://www.gpwinfostrefa.pl/GPWIS2/pl/quotes/archive/2');




?>
